Ext.define('DCApp.view.thesis.List', {
    extend: 'Ext.grid.Panel',
    alias: 'widget.thesislist',
    
    requires: [
        'DCApp.view.thesis.ListController',
        'DCApp.view.thesis.ListModel',
        'DCApp.view.GridFilters'
    ],

    controller: 'thesislist',
    plugins: 'gfilters',
    viewModel: {
        type: 'thesislist'
    },
    bind: {
        store: '{theses}'
    },
    header:false,
    title: 'Array Grid',

    selType: 'checkboxmodel',
    
    tbar: ['->',{
        text: '录入',
        handler: 'onSaveClick'
    },{
        text: '打开',
        handler: 'onOpenThesis'
    }],
    
	bubbleEvents:['viewthesis'],
	
	listeners: {
        itemdblclick: 'onThesisDblClick'
    },
    
    columns: [
            {
                text     : '论文专著编号',
                dataIndex: 'thesisId',
                filter: 'number'
            },
            {
                text     : '论文专著名称',
                dataIndex: 'thesisName',
                filter: 'string'
            },
            {
                text     : '是否删除(Y/N)',
                dataIndex: 'isdel',
                filter: 'string'
            },
            {
                text     : '论文重复ID(>6...)',
                dataIndex: 'repeatid',
                filter: 'number'
            },
            {
                text     : '期刊章节(专著...)',
                dataIndex: 'chapterNum',
                filter: 'string'
            },
            {
                text     : '论文首页页码',
                dataIndex: 'pageFrom',
                filter: 'number'
            },
            {
                text     : '是否引用',
                dataIndex: 'iscommend',
                filter: 'string'
            },
            {
                text     : '引用的资源',
                dataIndex: 'notes',
                filter: 'string'
            },
            {
                text     : '论文专著类型',
                dataIndex: 'thesisClass',
                filter: 'string'
            },
            {
                text     : '格式类型',
                dataIndex: 'thesisType',
                filter: 'string'
            },
            {
                text     : '作者',
                dataIndex: 'author',
                filter: 'string'
            }
        ],
    initComponent: function(){
    	this.callParent();
    }
 });
